'''
Created on 2010-1-10

@author: jazy
'''
import ctypes

class ByteArray(object):
    '''
    byte arrray like c
    '''
    
    def __init__(self,size):
        '''
        Constructor
        '''
        self.size=size
        self.byte_buffer=(ctypes.c_ubyte*size)()